﻿using SelfManagement.Database.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SelfManagement.Database.POCO
{
    [Table("Daily")]
    public class Daily: UserBase
    {
        /// <summary>
        /// 任务概述
        /// </summary>
        [StringLength(50)]
        public string TaskName { get; set; }

        /// <summary>
        /// 日期
        /// </summary>
        public DateTime Date { get; set; }
        
        /// <summary>
        /// 表现如何
        /// </summary>
        [StringLength(2000)]
        public string Performance { get; set; }

        /// <summary>
        /// 任务列表
        /// </summary>
        public virtual ICollection<DailyTask> Tasks { get; set; } = new HashSet<DailyTask>();

        /// <summary>
        /// 任务完成情况
        /// </summary>
        public TaskStatus Status { get; set; } = TaskStatus.Uncompleted;
    }
}
